#include <iostream>
#include <cmath>
using namespace std;

void Test1() {
    char c;
    while ((c = getchar()) != EOF){
        if ('A' <= c && 'Z' >= c) {
            c = (c > 'E') ? (c - 5) : (c + 21);
        }
        putchar(c);
    }
}

void Test2()
{
    int n, k, i;
    while (cin >> n){
        k = 0;
        for (i = 2; i <= sqrt(n); i++) {
            if ((n % i) == 0) {
                while ((n % i) == 0){
                    n = n / i;
                }
                k++;
            }
        }
        if(n != 1)
            k++;
        cout << k << endl;
    }
}

int main() {
    Test2();
    return 0;
}
